<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title></title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1" name="viewport"/>
	<meta content="" name="description"/>
	<meta content="" name="author"/>
	<!-- BEGIN GLOBAL MANDATORY STYLES -->
	<link href="./Public/Admin/assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
	<link href="./Public/Admin/assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css"/>
	<link href="./Public/Admin/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
	
	<!-- BEGIN THEME STYLES -->
	<link href="./Public/Admin/assets/global/css/components.css" id="style_components" rel="stylesheet" type="text/css"/>
	
	<link href="./Public/Admin/assets/admin/layout/css/layout.css" rel="stylesheet" type="text/css"/>
	<!--<link href="./Public/Admin/assets/admin/layout/css/themes/darkblue.css" rel="stylesheet" type="text/css" id="style_color"/>-->
	
	<!-- END THEME STYLES -->
	<link rel="shortcut icon" href="favicon.ico"/>
	 <base target="iframe"/>
</head>
<body>
	<form action="" method="post">
	<table border="" cellspacing="" cellpadding="" class="table table-bordered table-hover">
		<tr>
			
			<th>id</th>
			<?php foreach ($name as $k=>$v){?>
			<th><?php echo $v[0]['attname']?></th>
			<?php }?>
			<th>库存</th>
			<th>货号</th>
		</tr>
		<tr class="info">
				<td>修改货品</td>
				<?php foreach ($name as $key=>$value){?>
				<td>
					<select name="gattrid">
						<?php foreach ($value as $v){?>
						<option value="<?php echo $v['gaid']?>" 
							<?php if(in_array($v['gavalue'],$goodslistData['gattrid'])){?>
                selected
               <?php }?> ><?php echo $v['gavalue']?></option>
						<?php }?>
					</select>
				</td>
				<?php }?>

				<td><input type="text" name="gltotal" id="" value="<?php echo $goodslistData['gltotal']?>"/></td>
				<td>
					<input type="text" name="glnum" value="<?php echo $goodslistData['glnum']?>"/>
				</td>
				<input type="hidden" name="goods_gid" value="<?php echo Q('get.gid',0)?>" />
				<input type="hidden" name="glid" value="<?php echo Q('get.glid',0)?>" />
			</tr>
	</table>
	<input type="submit" value="修改数据" class="btn btn-success"/>
	</form>
</body>
</html>